package com.PVZ;

import com.PVZ.controller.GameController;
import com.PVZ.engine.Stage;
import com.PVZ.engine.map.GameMap;
import com.PVZ.engine.map.level.Level_1;
import com.PVZ.model.emuns.Configs;
import com.PVZ.view.canvas.BackGroundCanvas;
import com.PVZ.view.canvas.EntityCanvas;
import com.PVZ.view.GameFrame;

/**
 * Created by @Author: kabuda on @Date: 2021/5/17 20:35
 */
public class Main {
    public static void main(String[] args) {

        Configs configs = new Configs();
        Level_1 level = new Level_1("关卡1", "bgm.wav", new GameMap("baseLight.png", 5));

        Stage stage = new Stage(level);

        BackGroundCanvas backGroundCanvas = new BackGroundCanvas(stage.getLevel().getGameMap());
        GameFrame gameFrame = new GameFrame(new EntityCanvas(), backGroundCanvas);

        GameController gameController = new GameController(gameFrame, stage);


        gameController.playGame();

    }
}
